SG FileSys | |
ExcludedFolders Property |
Enumerator Object Constants Error Codes |
Returns or sets string that contains list of directories that are not enumerated or recursed.
object.ExcludedFolders As String
The object is expression that evaluates to the Enumerator object.
Directory names must be separated with semicolon (:) character.
Following example lists files from the C:/Projects and it's subdirectories. Files in directories named 'Debug' and 'Release' are not listed.
Option Explicit Dim en, item Set en = CreateObject("SGFileSys.Enumerator") en.RootPath = "C:/Projects/" en.Recurse = True en.NameMask = "*.*" en.ExcludedFolders = "Debug:Release" For Each item In en.Items WScript.Echo item.Path Next